package com.xydtech.system.service;

import com.xydtech.system.domain.SysWechatApplet;

import java.util.List;

/**
 * 微信小程序配置Service接口
 *
 * @author JHON
 * @date 2021-10-12
 */
public interface ISysWechatAppletService {
    /**
     * 查询微信小程序配置
     *
     * @param id 微信小程序配置ID
     * @return 微信小程序配置
     */
    public SysWechatApplet selectSysWechatAppletById(Long id);

    /**
     * 查询微信小程序配置列表
     *
     * @param sysWechatApplet 微信小程序配置
     * @return 微信小程序配置集合
     */
    public List<SysWechatApplet> selectSysWechatAppletList(SysWechatApplet sysWechatApplet);


    /**
     *查询微信小程序配置
     * @Title: getWechatAppletByAppId
     * @param appletType
     * @param appid
     * @return com.xydtech.system.domain.SysWechatApplet
     * @exception
     * @author JHON
     * @Date 2021/10/12 10:09
     **/
    public SysWechatApplet getWechatAppletByAppId(String appletType, String appid);

    /**
     *查询微信小程序配置
     * @Title: getWechatAppletByAppId
     * @param appletType
     * @param deptId
     * @return com.xydtech.system.domain.SysWechatApplet
     * @exception
     * @author JHON
     * @Date 2021/10/12 10:09
     **/
    public SysWechatApplet getWechatAppletByDeptId(String appletType, Long deptId);

    /**
     * 新增微信小程序配置
     *
     * @param sysWechatApplet 微信小程序配置
     * @return 结果
     */
    public int insertSysWechatApplet(SysWechatApplet sysWechatApplet);

    /**
     * 修改微信小程序配置
     *
     * @param sysWechatApplet 微信小程序配置
     * @return 结果
     */
    public int updateSysWechatApplet(SysWechatApplet sysWechatApplet);

    /**
     * 批量删除微信小程序配置
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteSysWechatAppletByIds(String ids);

    /**
     * 删除微信小程序配置信息
     *
     * @param id 微信小程序配置ID
     * @return 结果
     */
    public int deleteSysWechatAppletById(Long id);
}
